package stream.sort;

import java.math.BigDecimal;

public class Obj {
    private String name;
    private BigDecimal price;

    public Obj(String name, BigDecimal price) {
        this.name = name;
        this.price = price;
    }

    public Obj() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Obj [name=" + name + ", price=" + price + "]";
    }
}